<div class="span12">
    <div class="span12">
        <?php echo anchor('admin/rep_judul', '<button class="btn btn-mini" type="button">Cetak laporan</button>') ?>
    </div>
    <!--tabel-->
    <table class="table table-bordered table-striped">
        <thead align="center">
            <tr>
                <th colspan="5" style="text-align: center; background-color:#610E54; color:white;">DAFTAR PENGAJUAN JUDUL TESIS</th>
            </tr>
            <tr>
                <th class="span2">Tanggal</th>
                <th class="span1">NPM</th>
                <th class="span4">Judul 1</th>
                <th class="span4">Judul 2</th>
                <th class="span1">Konfirmasi</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($judul as $judul): ?>
                <tr>
                    <td>
                        <?php
                        $sub = $judul->submit;
                        $d = substr($sub, 8, 2);
                        $m = substr($sub, 5, 2);
                        $y = substr($sub, 0, 4);
                        echo $d . '-' . $m . '-' . $y
                        ?>
                    </td>
                    <td><?php echo $judul->nim ?></td>
                    <td><?php echo $judul->judul_1 ?></td>
                    <td><?php echo $judul->judul_2 ?></td>
                    <td>
                        <div class="btn-group">
                            <button class="btn btn-success dropdown-toggle" data-toggle="dropdown">Setujui<span class="caret"></span></button>
                            <ul class="dropdown-menu">
                                <li><?php echo anchor('admin/saran/' . $judul->id, 'Suggestion') ?></li>
                                <li><?php echo anchor('admin/confirm/' . $judul->id, 'Accept') ?></li>
                            </ul>
                        </div>
                    </td>
                </tr>
<?php endforeach; ?>
        </tbody>
    </table>
</div>